package com.ethink.warehouse.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
import java.math.BigDecimal;
import com.ethink.framework.common.db.SuperEntity;

/**
 * 入库/出库明细单 数据库实体
 *
 * @author default
 * @date 2022-12-15
 */
@Data
@TableName("t_mate_inventory_detail_order")
public class MateInventoryDetailOrder extends SuperEntity {

    public static final String SOURCE_ORDER_NO ="source_order_no";

    public static final String SOURCE_DETAIL_ORDER_NO ="source_detail_order_no";

    public static final String MATE_INVENTORY_ID ="mate_inventory_id";

    public static final String MATE_SKU ="mate_sku";

    public static final String INVENTORY_TYPE ="inventory_type";

    public static final String SALE_SUB_CHANNEL ="sale_sub_channel";

    public static final String PURCHASE_CODE ="purchase_code";

    public static final String PRODUCE_CODE ="produce_code";

    public static final String COUNTRY_OF_ORIGIN ="country_of_origin";

    public static final String OPERATE_TIME ="operate_time";

    public static final String PRODUCT_DATE ="product_date";

    public static final String EXPIRE_DATE ="expire_date";

    public static final String ACTUAL_IN_QTY ="actual_in_qty";

    public static final String PURCHASE_ORDER_NO ="purchase_order_no";

    public static final String PURCHASE_DETAIL_ORDER_NO ="purchase_detail_order_no";

    public static final String COST_PRICE ="cost_price";


    private Long mateInventoryOrderId;

    /** 原始单号 */
    private String sourceOrderNo;

    /** 原始详单号 */
    private String sourceDetailOrderNo;

    /** 库存ID */
    private Long mateInventoryId;

    /** 商品SKU */
    private String mateSku;

    /** 枚举 库存类型:1-正品(zp)|2-瑕疵(cc) */
    private Integer inventoryType;

    /** 渠道 */
    private String saleSubChannel;

    /** 采购批次 */
    private String purchaseCode;

    /** 生产批次 */
    private String produceCode;

    /** 原产国 */
    private String countryOfOrigin;

    /** 商品生产日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date productDate;

    /** 商品过期日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date expireDate;

    /** 最终数量(入库/出库) */
    private Integer actualInQty;

    /** 采购单号 */
    private String purchaseOrderNo;

    /** 采购详单号 */
    private String purchaseDetailOrderNo;

    /** 成本单价 */
    private BigDecimal costPrice;

}
